package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RideCancellationTriggerBy {
    none(0, "none"),
    customer(1, "customer"),
    driver(2, "driver"),
    admin(3, "admin");

    @EnumValue
    private final int code;
    private final String desc;

    RideCancellationTriggerBy(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
